<?php
/**
 * @Author: rocky
 * @Copyright: 广州拓冠科技 <http://my8m.com>
 * Date: 2019/7/12
 * Time: 17:19
 */


namespace app\common\facade;
use think\Facade;

/**
 * @see \app\common\service\Token
 * @mixin \app\common\service\Token
 * @method array encode($data) static 加密返回token
 * @method array decode($token) static 解密token
 * @method bool auth() static 验证token
 * @method bool getVar($name) static 获取Token保存数组key下的值
 * @method int id() static 获取用户id
 * @method bool set($token) static 设置token
 * @method bool get() static 获取token
 * @method bool logout($token) static 退出token
 * @method bool clear($token) static 清除token
 * @method model user($lock=false) static 获取用户模型
 */

class Token extends Facade
{
    protected static function getFacadeClass()
    {
        return 'app\common\service\Token';
    }
}